//
// Created by 文道江 on 15/11/25.
// Copyright (c) 2015 WenDaojiang. All rights reserved.
//
#import <UIKit/UIKit.h>

@protocol SplashScreenViewDelegate
@optional
- (void)imageClick:(UIImageView *)imageView;

- (void)skipClick:(UIView *)view;

- (void)viewHidden;

- (void)imageDidLoadError:(NSError *)error;

@end

@interface SplashScreenView : UIView

@property(strong, nonatomic) NSObject <SplashScreenViewDelegate> *delegate;

/**
 * 显示时间控件
 */
@property BOOL showControl;

/**
 * 是否显示倒计时
 */
@property BOOL showCountdown;


+ (instancetype)viewWithFrame:(CGRect)frame Image:(id)image showTime:(NSInteger)time;

+ (instancetype)instance;

- (void)setShowTime:(NSInteger)showTime image:(id)image;

- (void)showWithImage:(id)image Time:(NSInteger)time;

- (void)hide:(BOOL)animated;

@end